.scrollbar__(@width: 8px, @height: 8px) {
    &::-webkit-scrollbar {
        width: @width;
        height: @height;
        background-color: @scrollbar-bg-color;
        border-radius: 100px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: fade(@scrollbar-color, 20%);
        border-radius: 100px;
    }

    &::-webkit-scrollbar-corner {
        background: none;
    }

    &:hover {

        // width: @scrollbar-width;
        // &::-webkit-scrollbar {
        //     width: @scrollbar-width;
        // }
        &::-webkit-scrollbar-thumb {
            background-color: fade(@scrollbar-color, 30%);
        }
    }
}

/**
* animation
*/
.keyframes (@prefix, @name, @content) when (@prefix=def) {
    @keyframes @name {
        @content();
    }
}

.keyframes (@prefix, @name, @content) when (@prefix=moz) {
    @-moz-keyframes @name {
        @content();
    }
}

.keyframes (@prefix, @name, @content) when (@prefix=o) {
    @-o-keyframes @name {
        @content();
    }
}

.keyframes (@prefix, @name, @content) when (@prefix=webkit) {
    @-webkit-keyframes @name {
        @content();
    }
}

.keyframes (@prefix, @name, @content) when (@prefix=all) {
    .keyframes(moz, @name, @content);
    .keyframes(o, @name, @content);
    .keyframes(webkit, @name, @content);
    .keyframes(def, @name, @content);
}

// .keyframes222(all, bg, {
//         @flashBg: #f00;

//         0% {
//             background: rgba(46, 96, 179, 0.18);
//         }

//         25% {
//             background: rgba(46, 96, 179, 0.5);
//         }

//         50% {
//             background: rgba(46, 96, 179, 0.1);
//         }

//         75% {
//             background: rgba(46, 96, 179, 0.3);
//         }

//         100% {
//             background: rgba(46, 96, 179, 0.18);
//         }
//     }

// );

.keyframes(all, bg, {

        0% {
            background: fade(@MsgflashBg, 18);
        }

        25% {
            background: fade(@MsgflashBg, 5);
        }

        50% {
            background: fade(@MsgflashBg, 1);
        }

        75% {
            background: fade(@MsgflashBg, 3);
        }

        100% {
            background: fade(@MsgflashBg, 18);
        }
    }

);


/*放大缩小--慢*/
.scaleDrawbtn {
    -webkit-animation-name: scaleDraw;
    /*关键帧名称*/
    -webkit-animation-timing-function: ease-in-out;
    /*动画的速度曲线*/
    -webkit-animation-iteration-count: infinite;
    /*动画播放的次数*/
    -webkit-animation-duration: 2s;
    /*动画所花费的时间*/
}

@keyframes scaleDraw {

    /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
    0% {
        transform: scale(1);
        /*开始为原始大小*/
    }

    25% {
        transform: scale(0.7);
        /*放大1.1倍*/
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(0.7);
    }
}

/*放大缩小--快*/
.scaleDrawbtn1 {
    -webkit-animation-name: scaleDraw1;
    /*关键帧名称*/
    -webkit-animation-timing-function: ease-in-out;
    /*动画的速度曲线*/
    -webkit-animation-iteration-count: infinite;
    /*动画播放的次数*/
    -webkit-animation-duration: 1s;
    /*动画所花费的时间*/
}

@keyframes scaleDraw1 {

    /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
    0% {
        transform: scale(1);
        /*开始为原始大小*/
    }

    25% {
        transform: scale(0.5);
        /*放大1.1倍*/
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(0.5);
    }
}

.blink {
    animation: bg 600ms infinite;
    -webkit-animation: bg 600ms infinite;
}

/*加载样式2*/
.spinner {
    /*margin: 100px auto 0;
    width: 150px;*/
    text-align: center;
}

.hide {
    display: none;
}

.spinner {
    &>div {
        width: 30px;
        height: 30px;
        background-color: #c1c1c1;

        border-radius: 100%;
        display: inline-block;
        -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
        animation: bouncedelay 1.4s infinite ease-in-out;
        /* Prevent first frame from flickering when animation starts */
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;

    }

    .bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }
}



@-webkit-keyframes bouncedelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0.0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    40% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

.messageBox {

    height: 100%;
    overflow: hidden;

    .data-tips {
        text-align: center;
        padding: 10px 0;
    }

    .layui-row {
        height: 100%;

        .rd-tabHd {
            background: @message_left_bg;
            height: 100%;

            ul {
                li {
                    background: @message_left_li_bg;
                    color: @message_left_font_color;
                    padding: 10px;
                    border-bottom: @message_left_li_border;
                    cursor: pointer;

                    .layui-badge {
                        float: right;
                    }

                    &:hover {
                        background: darken(@message_left_li_bg, 5%);
                    }

                    &.hover {
                        background: darken(@message_left_li_bg, 10%);
                    }
                }
            }
        }

        .rd-tabContent {
            height: 100%;
            overflow: auto;
            .scrollbar();

            ul {
                li {
                    padding: 10px;
                    background: @message_right_li_bg_color;
                    border-bottom: @message_right_li_border;
                    cursor: pointer;

                    i {
                        font-style: normal;
                    }

                    .color-blue {
                        color: #1b94f2;
                    }

                    .color-yellow {
                        color: #f89406;
                        font-weight: normal;
                    }

                    p {
                        &.maTitle {
                            font-weight: bold;
                            padding: 5px 0;
                        }
                    }

                    .massgeRtxt {
                        float: right;
                        margin: 0 0 0 10px;
                    }

                    &:hover,
                    &.active {
                        background: @message_right_li_hover_bg_color;
                    }

                    &.hover {
                        background: darken(@message_right_li_hover_bg_color, 5%);
                    }
                }
            }
        }
    }

    .remind-tips {
        // display: none;
        position: absolute;
        top: 0;
        right: 8px;
        background-color: rgba(0, 0, 0, .6);
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px 0 0 5px;
        cursor: pointer;
        // animation: fadeIn 0.2s linear;
    }
}

@noticeName :.noticeBox;
@noticeWidth: 300px;

@{noticeName} {
    border-radius: 3px;
    position: absolute;
    z-index: 9999999999;
    color: #fff;
    opacity: .8;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
    filter: alpha(opacity=80);
    padding: 18px;
    width: @noticeWidth;
    right:~'-@{noticeWidth}';
    box-sizing: border-box;
    -webkit-transition: 0.6s;
    -moz-transition: 0.6s;
    -ms-transition: 0.6s;
    -o-transition: 0.6s;
    transition: 0.6s;
    cursor: pointer;

    @{noticeName}-close-button {
        padding: 0;
        cursor: pointer;
        background: 0 0;
        border: 0;
        -webkit-appearance: none;
        position: relative;
        right: -.3em;
        top: -.3em;
        float: right;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        -webkit-text-shadow: 0 1px 0 #fff;
        text-shadow: 0 1px 0 #fff;
        opacity: .8;
    }
}

@{noticeName}-success {
    background-color: #51a351;
}

@{noticeName}-error {
    background-color: #bd362f
}

@{noticeName}-info {
    background-color: #2f96b4
}

@{noticeName}-warning {
    background-color: #f89406
}

@{noticeName}-top-right {
    top: 0;
    // right: 0;
}

@{noticeName}-center-right {
    top: 50%;
    right: 0;
}

@{noticeName}-bottom-right {
    bottom: 0;
    right: 0;
}

@{noticeName}-title {
    font-weight: bold;
}

@{noticeName}-message {
    font-weight: normal;
}

@{noticeName}-show {
    right: 0;
}